﻿@using SmartCode
@using SmartCode.Db
@model BuildContext
@{
    var project = Model.Project;
    var dbSource = Model.GetDataSource<DbSource>();
    var table = Model.GetCurrentTable();
    var pkCol = table.PKColumn;
    var prefix = dbSource.DbProvider.ParameterPrefix;
}

<!--删除-->
<Statement Id="Delete">
    Delete From @table.Name
    Where @pkCol.Name=@prefix@pkCol.ConvertedName
</Statement>